# -*- coding:utf-8 -*-
from django.contrib import admin

# Register your models here.
from .models import Question
from .models import Choice

class QuestionAdmin(admin.ModelAdmin):
    fieldsets = [
        ('问题', {'fields': ['question_text']}),
        ('时间', {'fields': ['pub_date']})
    ]
    list_display = ('question_text', 'pub_date')
    list_filter = ['pub_date']
    
admin.site.register(Question, QuestionAdmin)
admin.site.register(Choice)